package com.kfm.am;

public class Student {

    private String name;
    private int age;
    private int studentId;
    private double score;

    public Student() {
    }

    public Student(String name, int age, int studentId, double score) {
        this.name = name;
        this.age = age;
        this.studentId = studentId;
        this.score = score;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return this.age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getStudentId() {
        return this.studentId;
    }

    public void setStudentId(int id) {
        this.studentId = id;
    }

    public double getScore() {
        return this.score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    public String info() {
        return this.name + "，今年" + age + "岁，学号：" + studentId + "，成绩：" + this.score;
    }

}
